class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.column :lock_version, :integer,   :null => false
      t.column :excerpt,      :string,    :null => false, :limit => 500
      t.column :content,      :text,      :null => false
      t.column :created_at,   :timestamp, :null => false
      t.column :updated_at,   :timestamp, :null => false
    end
  end

  def self.down
    drop_table :articles
  end
end
